﻿<!doctype html>
<html>
<!-- InstanceBegin template="/Templates/template1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>会员级别</title>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="../js/common.js"></script>
<link href="../css/Pager.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery.pager.js"></script>
<script type="text/javascript" src="../js/gbRst.js"></script>
<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/formValidator.js"></script>
<script type="text/javascript" src="../js/formValidatorRegex.js"></script>
<script type="text/javascript" src="../js/checkLogin.js"></script>
<link href="../css/validator3.css" type="text/css" rel="stylesheet" />
<link href="../css/style.css" type="text/css" rel="stylesheet" />
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script type="text/javascript" >

$(function(){
	refreshInput($(".serWrapper"));
	addMargin($("#window_change"));
	$("#closeThe").click(function(){
		$("#yinying1,#window_change").hide();
	})
	
	$("#shopIsChoosed").click(function(){
		if($("#shopIsChoosed").is(":checked")){
			$("#shopName").attr("disabled",false);
			$("#research").attr("disabled",false);
			
		}else{
			$("#shopName").attr("disabled",true);

		}
	});
})
var pageIndex = 1
var pagecount = 0;
var count = 0;
var shopId="shopId";
var shopPageCount=0;
var shopCount=0;


function bclicks(obj){
	var $first=obj.parent("td").parent("tr").children("td:first");
	var id=$first.html();
	var name=$first.next().html();
	//$("#shopName").children("option").blur();
	getParamToshopS(id,name);
}
function getParamToshopS(id,name){
	var shopflag=$("#shopflag").val();
	if(shopflag==2){
		var htm="<option value='"+id+"'>"+name+"</option>";
	$("#shopName2").html(htm);
	$("#shopName2").val(id);
	}else{
		
	var htm="<option value='"+id+"'>"+name+"</option>";
	$("#shopName").html(htm);
	$("#shopName").val(id);
	}
	closeShopShow();
}

function closeShopShow(){
	$("#shopShow,#yinying").hide();
	$("#searchName").val("");
}

function InitShopList(shopPageIndex){
	var shopName=$("#searchName").val().replace(/\s/gi,'');
	$.ajax({
		type : "post",
		async:false,
		data :'name='+shopName,
		datatype : "json",
		url : "../shop/find/shopList/" + shopPageIndex + "/5",
		success : function(data) {
			var rst = JSON.parse(data);
			 if(IsEmpty(rst)){
					art.dialog({fixed:true, lock: true,content:"查询出错",icon:'error',ok:true});	
					return false;
					}
					if(rst.state==0){
						$("#shopList tbody tr").remove();

						initShopTable(rst);
						$("table[id='shopList'] tbody tr").each(function(){
							$(this).children("td:last").css("text-align","center").append("<input type='button' class='common_btn' value='选择' onclick='bclicks($(this))'>");

						})	
						if(rst.result.len > 0){
							 var shu = rst.result.len;
							 shopCount = Math.ceil(shu/5);					
							 }else{
									shopCount==0;
							 }
						 $("#shopPager").pager({ pagenumber: ++shopPageIndex, pagecount: shopCount, buttonClickCallback: ShopPageClick });
						 addMargin($("#shopShow"));	
						 }else if(rst.state==1){
						art.dialog({fixed:true, lock: true,content:rst.msg,icon:'error',ok:true});	
					}else{
						checkStateShowErrorMsgAndDealResult(data);
					}
		}	
	});
	
		
	
}
ShopPageClick = function(pageclickednumber) {
    $("#shopPager").pager({ pagenumber: --pageclickednumber, pagecount: shopCount, buttonClickCallback: ShopPageClick });
    $("#result").html("Clicked Page " + pageclickednumber);
    InitShopList(pageclickednumber);
};
function search2(){
	InitShopList(0);
}

function initShopTable(json){
	if(json!=null && json.state==0){
		var params = new Array("id", "name","mp","contact");
		Loadtable(json,params,"shopList");
	}
}

function showShopList(shopflag){
	$("#shopflag").val(shopflag);
	$("#shopName").blur();
	$("#shopName2").blur();
	$("#shopShow,#yinying").show();
	InitShopList(0);
}
function InitTable() {
	var code=$("#code").val().replace(/\s/gi,'');
	var name=$("#name").val().replace(/\s/gi,'');
	var shopId="";
	var param={'code':code,'name':name}
	if($("#shopIsChoosed").is(":checked")){	
		shopId=$("#shopName").val();
		if(shopId!=""&&shopId!=null){
			param={'code':code,'name':name,'shopId':shopId}
		}
	}
	$.ajax({
		type : "get",
		async:false,
		data :param,
		datatype : "json",
		url : "../memberLevel/find/memberLevelList/" + (pageIndex-1) + "/10",
		success : function(data) {
			var dt = JSON.parse(data);
					if(IsEmpty(dt)){
						art.dialog({fixed:true, lock: true,content:"查询出錯",icon:'error',ok:true});	
						return false;
						}
						if(dt.state==0){
							$("#memberList tbody tr").remove();
							 DealAndShowMsg(data,false,true);
							initTable(dt);
							
							
							if(dt.result.len > 0){
								 var shu = dt.result.len;
							 	 pagecount = Math.ceil(shu/10);
							 	 $("#NoResult").hide();
							}else{
								$("#NoResult").show();
								pagecount=0;

							}
							 	$("#sup").html("共"+dt.result.len+"条");	
							 $("#pager").pager({ pagenumber: pageIndex, pagecount: pagecount, buttonClickCallback: PageClick });
	
						}else if(dt.state==1){
							art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});	
						}else{
							checkStateShowErrorMsgAndDealResult(data);
						}		
					
					
					
		}	
	});
	
		
	
}



PageClick = function(pageclickednumber) {
  pageIndex=pageclickednumber
	InitTable();
}

function search(){
	pageIndex=1;
	InitTable();
}

function initTable(json){

	$("#memberList tbody").empty();
	for ( var i = 0; i < json.result.data.length; i++) {
		$("#memberList tbody").append("<tr><tr>")
		var htm="<td>"+getHtmlString(getHeadIndexValue(i, json, "shopName"))+" </td>"
		htm+="<td>"+getHtmlString(getHeadIndexValue(i, json, "Code"))+" </td>"
		htm+="<td>"+getHtmlString(getHeadIndexValue(i, json, "Name"))+" </td>"
		htm+="<td>"+getHtmlString(getHeadIndexValue(i, json, "ValidDay"))+" </td>"
		htm+="<td>"+getHtmlString(getHeadIndexValue(i, json, "MemberFee"))+" </td>"
		htm+="<td>"+getHtmlString(getHeadIndexValue(i, json, "Status"))+" </td>"
		htm+="<td>"+(getHtmlString(getHeadIndexValue(i, json, "sys"))==1?"是":"否")+" </td>"
		htm+="<td><input class=\"common_btn to_update\" type=\"button\" onclick=\"toUpdate("+getHtmlInt(getHeadIndexValue(i, json, "ID"))+")\" value=\"修改\"><br><input class=\"del\" type=\"button\" onclick=\"popPoint("+getHtmlInt(getHeadIndexValue(i, json, "ID"))+")\" value=\"删除\"></td>"
		$("#memberList tbody tr:last").append(htm)
	}
	
	
	
}

function popPoint(id){
	art.dialog({fixed:true, lock: true,content:"确认删除该条数据？",icon:'question',ok: function(){ deletes(id)},cancel:true});
	}

function deletes(id){

	if(IsNotEmpty(id)){

		$.post("../memberLevel/del",{"id":id}, function(data) {
			var rst = JSON.parse(data);
			if(IsEmpty(rst)){
				art.dialog({fixed:true, lock: true,content:"删除出错",icon:'error',ok:true});	
				return false;
				}
				if(rst.state==0){
					art.dialog({fixed:true, lock: true,content:"删除成功",icon:'succeed',ok:true});	
					InitTable();
					if(pagecount==0&&pageIndex>0){
						pageIndex--
						InitTable();
					}
					}else if(rst.state==1){
						art.dialog({fixed:true, lock: true,content:"删除出错",icon:'error',ok:true});	
				}else{
					checkStateShowErrorMsgAndDealResult(data);
				}
			
		});
	}
}


function Loadtable(json, params, tableId){
	var phArray = new Array();
	var count = 0;
	if (params != null) {
		$(params).each(function(pIndex, pData) {
			$.each(json.result.head, function(hIndex, hData) {
				if (pData == hData) {
					phArray[count++] = hIndex;
				}
			});
		});
	}
	
	if (json.result.data != null) {
		$.each(json.result.data, function(index, dt) {
			$("table[id='" + tableId + "']").append("<tr></tr>");
			$(phArray).each(function(phIndex, data) {
				$.each($(dt), function(dtIndex, d) {
					if (dtIndex == data) {
						$("table[id='" + tableId + "'] tr:last").append("<td>" +  (d === null||d == "null" ? " " : d) + "</td>");
					}
				});
			});
		});
		
	}
	

	
}

function  downRescouse(){
	var phone=$("#phone").val().replace(/\s/gi,'');	
	var code=$("#code").val().replace(/\s/gi,'');
	var status=$("#status").val();
	var dtBegin=$("#dtBegin").val();
	var dtEnd=$("#dtEnd").val();
	var shopId="";
	var param='phone='+phone+'&code='+code+"&status="+status+"&dtBegin="+dtBegin+"&dtEnd="+dtEnd+"&downType=1";
	if($("#shopIsChoosed").is(":checked")){

		
		shopId=$("#shopName").val();
		
		if(shopId!=""&&shopId!=null){
			param+="&shopId="+shopId;
		}
	}
	
	
	window.location.href="../csvdown/down/csv/down?"+param

}


/**
 * 点击添加按钮
 */
function toAdd(){
	_flag=0;	//更新标识符
	$("#shopName2").html("");
	$('#levelCode').val("");
	$('#levelName').val("");
	$("#memberFee").val("");
	$("#validDay").val("");
	$("#deposit").val("")
	$("#yinying1,#window_change").show();
	$("#close_this").val("确认增加");	
	$("#close_this").attr("disabled",false);
	$("#doflag").val(1);
	$("#status").val(0);
	$("#status").attr("disabled",false);;
}

function toUpdate(id){
	if(!id>0){
		art.dialog({fixed:true, lock: true,content:"查询出錯",icon:'error',ok:true});	
		return false;	
	}
	$.ajax({
		type : "get",
		async:false,
		datatype : "json",
		url : "../memberLevel/find/memberLevelById/"+id,
		success : function(data) {
			var dt = JSON.parse(data);
					if(IsEmpty(dt)){
						art.dialog({fixed:true, lock: true,content:"查询出錯",icon:'error',ok:true});	
						return false;
						}
						if(dt.state==0){
							var htm="<option value="+getHtmlString(getHeadIndexValue(0, dt, "ShopID"))+">"+getHtmlString(getHeadIndexValue(0, dt, "shopName"))+"</option>";
								$("#shopName2").html(htm);
								$("#levelCode").val(getHtmlString(getHeadIndexValue(0, dt, "Code")))
								$("#levelName").val(getHtmlString(getHeadIndexValue(0, dt, "Name")))
								$("#validDay").val(getHtmlString(getHeadIndexValue(0, dt, "ValidDay")))
								$("#status").val(getHtmlString(getHeadIndexValue(0, dt, "Status")))
								$("#memberFee").val(getHtmlString(getHeadIndexValue(0, dt, "MemberFee")))
								$("#deposit").val(getHtmlString(getHeadIndexValue(0, dt, "discount")))
								$("#sys").val(getHtmlString(getHeadIndexValue(0, dt, "sys")))
								$("#yinying1,#window_change").show();
								$("#close_this").val("确认修改");
								$("#close_this").attr("disabled",false);
								$("#doflag").val(2);
								$("#updateId").val(id);
						}else if(dt.state==1){
							art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});	
						}else{
							checkStateShowErrorMsgAndDealResult(data);
						}		
					
					
					
		}	
	});
}

function doAddOrUpdate(){
	var doflag=$("#doflag").val();
	if(doflag==1){
		addLevel();
	}else if(doflag==2){
		updateLevle();
	}else{
		art.dialog({fixed:true, lock: true,content:"页面出错",icon:'error',ok:function (){window.location.reload()}});	

	}
}
function  updateLevle(){
	var id=$("#updateId").val()
	var levelCode=$("#levelCode").val()
	var shopId=$("#shopName2").val();
	var levelName =$("#levelName").val();
	var Status=$("#Status").val();
	var validDay =$("#validDay").val();
	var deposit = $("#deposit").val()
	var memberFee = $("#memberFee").val();
	var status= $("#status").val()
	var sys=$("#sys").val();
	if(IsEmpty(levelCode)){
		art.dialog({fixed:true, lock: true,content:"级别编码不能为空",icon:'error',ok:true});
		$("#levelCode").focus();
		return false;
	}else{
		if(levelCode.length>50){
			art.dialog({fixed:true, lock: true,content:"级别编码过长(50字以内)",icon:'error',ok:true});
			$("#levelCode").focus();
			return false;	
		}
	}
	
	if(IsEmpty(memberFee)){
		art.dialog({fixed:true, lock: true,content:"会费不能为空",icon:'error',ok:true});
		$("#memberFee").focus();
		return false;
	}else{
		var reg=/^([1-9][\d]{0,7}|0)(\.[\d]{1,2})?$/;
		if(!reg.test(memberFee)){
			art.dialog({fixed:true, lock: true,content:"会费错误",icon:'error',ok:true});
			$("#memberFee").focus();
			return false;	
		}
	}
	if(IsEmpty(levelName)){
		art.dialog({fixed:true, lock: true,content:"级别名称不能为空",icon:'error',ok:true});
		$("#levelName").focus();
		return false;
	}else{
		if(levelName.length>50){
			art.dialog({fixed:true, lock: true,content:"级别名称过长(50字以内)",icon:'error',ok:true});
			$("#levelName").focus();
			return false;	
		}
	}
	if(IsEmpty(shopId)){

		art.dialog({fixed:true, lock: true,content:"请选择店铺",icon:'error',ok:true});

		$("#shopName2").val("")
		return false;
	}

	if(IsEmpty(validDay)){
		art.dialog({fixed:true, lock: true,content:"有效天数不能为空",icon:'error',ok:true});
		$("#validDay").focus();
		return false;
	}else{
		var reg=/^[0-9]\d*$/;
		if(!reg.test(validDay)){
			art.dialog({fixed:true, lock: true,content:"有效天数错误",icon:'error',ok:true});
			$("#validDay").focus();
			return false;	
		}
	}
	if(IsEmpty(deposit)){
		art.dialog({fixed:true, lock: true,content:"请输入折扣",icon:'error',ok:true});
		$("#deposit").focus();
		return false;
	}else{
		var reg=/^[1-9][0-9]|0*(\.[0-9])?$/;
		if(!reg.test(deposit)||deposit>1){
			art.dialog({fixed:true, lock: true,content:"折扣错误",icon:'error',ok:true});
			$("#validDay").focus();
			return false;	
		}
	}
	
	var heads=new Array("ShopID","Code","Name","ValidDay","Status","Discount","MemberFee","sys","ID");
	var datas=new Array(shopId,levelCode,levelName,validDay,status,deposit,memberFee,sys,id);
	
	
	var parser = new Object();
	var jsonParserStr = null;
	if (IsNotEmpty(datas)){
		addToParser(heads, datas, "edit" , parser);
		jsonParserStr =  JSON.stringify(parser);
	}
	 $("#save_btn").attr("disabled",true)
	$.post("../memberLevel/edit/editInfo",{"data":jsonParserStr}, function(data) {
		 $("#save_btn").attr("disabled",false)
		var dt = JSON.parse(data);
			
				 if(IsEmpty(dt)){
				art.dialog({fixed:true, lock: true,content:"修改出错",icon:'error',ok:true});	
				return false;
				}
				if(dt.state==0){
					art.dialog({fixed:true, lock: true,content:"修改成功",icon:'succeed',ok:true});	
					InitTable()
				$("#yinying1,#window_change").hide();
		
				}else if(dt.state==1){
					art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});
				}else{
					checkStateShowErrorMsgAndDealResult(data);
				}
		
	});
}


function addLevel(){
	
	var levelCode=$("#levelCode").val()
	var shopId=$("#shopName2").val();
	var levelName =$("#levelName").val();
	var Status=$("#Status").val();
	var validDay =$("#validDay").val();
	var deposit = $("#deposit").val()
	var memberFee = $("#memberFee").val();
	var status= $("#status").val()
	var sys=$("#sys").val();
	if(IsEmpty(levelCode)){
		art.dialog({fixed:true, lock: true,content:"级别编码不能为空",icon:'error',ok:true});
		$("#levelCode").focus();
		return false;
	}else{
		if(levelCode.length>50){
			art.dialog({fixed:true, lock: true,content:"级别编码过长(50字以内)",icon:'error',ok:true});
			$("#levelCode").focus();
			return false;	
		}
	}
	
	if(IsEmpty(memberFee)){
		art.dialog({fixed:true, lock: true,content:"会费不能为空",icon:'error',ok:true});
		$("#memberFee").focus();
		return false;
	}else{
		var reg=/^([1-9][\d]{0,7}|0)(\.[\d]{1,2})?$/;
		if(!reg.test(memberFee)){
			art.dialog({fixed:true, lock: true,content:"会费错误",icon:'error',ok:true});
			$("#memberFee").focus();
			return false;	
		}
	}
	if(IsEmpty(levelName)){
		art.dialog({fixed:true, lock: true,content:"级别名称不能为空",icon:'error',ok:true});
		$("#levelName").focus();
		return false;
	}else{
		if(levelName.length>50){
			art.dialog({fixed:true, lock: true,content:"级别名称过长(50字以内)",icon:'error',ok:true});
			$("#levelName").focus();
			return false;	
		}
	}
	if(IsEmpty(shopId)){

		art.dialog({fixed:true, lock: true,content:"请选择店铺",icon:'error',ok:true});

		$("#shopName2").val("")
		return false;
	}

	if(IsEmpty(validDay)){
		art.dialog({fixed:true, lock: true,content:"有效天数不能为空",icon:'error',ok:true});
		$("#validDay").focus();
		return false;
	}else{
		var reg=/^[0-9]\d*$/;
		if(!reg.test(validDay)){
			art.dialog({fixed:true, lock: true,content:"有效天数错误",icon:'error',ok:true});
			$("#validDay").focus();
			return false;	
		}
	}
	if(IsEmpty(deposit)){
		art.dialog({fixed:true, lock: true,content:"请输入折扣",icon:'error',ok:true});
		$("#deposit").focus();
		return false;
	}else{
		var reg=/^[1-9][0-9]|0*(\.[0-9])?$/;
		if(!reg.test(deposit)||deposit>1){
			art.dialog({fixed:true, lock: true,content:"折扣错误",icon:'error',ok:true});
			$("#validDay").focus();
			return false;	
		}
	}
	
	var heads=new Array("ShopID","Code","Name","ValidDay","Status","Discount","MemberFee","sys");
	var datas=new Array(shopId,levelCode,levelName,validDay,status,deposit,memberFee,sys);
	
	
	var parser = new Object();
	var jsonParserStr = null;
	if (IsNotEmpty(datas)){
		addToParser(heads, datas, "add" , parser);
		jsonParserStr =  JSON.stringify(parser);
	}
	 $("#save_btn").attr("disabled",true)
	$.post("../memberLevel/insert/insertInfo",{"data":jsonParserStr}, function(data) {
		 $("#save_btn").attr("disabled",false)
		var dt = JSON.parse(data);
			
				 if(IsEmpty(dt)){
				art.dialog({fixed:true, lock: true,content:"添加出错",icon:'error',ok:true});	
				return false;
				}
				if(dt.state==0){
					art.dialog({fixed:true, lock: true,content:"添加成功",icon:'succeed',ok:true});	
					pageIndex=1;
					InitTable()
				$("#yinying1,#window_change").hide();
		
				}else if(dt.state==1){
					art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});
				}else{
					checkStateShowErrorMsgAndDealResult(data);
				}
		
	});
}

</script>
</head>

<body>
<div id="yinying"></div>
	<div id="yinying1"></div>
	<!-- 商品大类-->
<div class="hideDiv hideOver" id="window1">
 <div class="closeTop"><span class="closeThe" onclick="closeParent($(this))"><img src="../images/close.png"></span></div>
	<table id="provinceList" width="100%" cellspacing="1" cellpadding="0" border="0" class="member_list">
    	<thead>
    	<tr>
        	<th>商品大类</th>
        	<th>操作</th>
        	<th>商品大类</th>
        	<th>操作</th>
        	<th>商品大类</th>
        	<th>操作</th>
        	<th>商品大类</th>
        	<th>操作</th>
        </tr>
        </thead>
        <tbody>
        	
        </tbody>
    </table>
</div>
	<!-- 添加或者更新 推荐的表单 -->
	<form id="valiForm">
		<div id="window_change" class="member_search hideDiv">
			<div class="closeTop">
				<span id="closeThe"><img src="../images/close.png"></span>
			</div>
			<input type="hidden" id="doflag"> 
			<input type="hidden"
				id="shopflag"> <input type="hidden" id="defaultCflag">
			<input type="hidden" id="updateId">
			<p>
				<label><span>店铺名称：</span> <select id="shopName2"
					onclick="showShopList('2')">
				</select> </label>
				<label><span>级别编码：</span> <input id="levelCode" type="text" ></label>
			</p>
			<p>
				<label><span>级别名称：</span> <input id="levelName" type="text" ></label>
				<label><span>会费：</span> <input id="memberFee" type="text" ></label>
			</p>
			<p>
				<label><span>折扣：</span> <input id="deposit" type="text" ></label>
<!-- 				<label><span>级别名称：</span> <input id="sys" type="text" ></label>
 -->				
 				<label><span>状态：</span>
					<select id="status">
						<option value="正常">正常</option>
						<option value="非正常">非正常</option>
				</select> </label>
			</p>
			<p>
	 	<label><span>有效天数：</span> <input id="validDay" type="text" ></label>			
				<label><span>是否默认入会：</span>
					<select id="sys" style="width: 65px;">
						<option value="1">是</option>
						<option value="0">否</option>
				</select> </label>
			</p>
			<div class="submit_btn">
				<input type="button" onclick="doAddOrUpdate()" value="保存信息"
					class="common_btn" id="close_this">
			</div>
		</div>
	</form>
	
	<!-- 选择 商铺名称的列表 -->
	<div id="shopShow" class="hideDiv">
		<div
			style="float: right; margin-bottom: 5px; width: 20px; height: 20px; line-height: 20px; text-align: center; background-color: #eee; margin-bottom: 5px; border: 1px solid #ccc;">
			<span style="cursor: pointer; font-size: 14px;"
				onclick="closeShopShow();">X</span>
		</div>
		<div class="bottom_search">
			<div class="serWrapper"><input type="text" id="searchName" class="txt"><strong class="refresh" onclick="$('#searchName').val('')">清空</strong></div> <input type="button"
				style="width: auto; margin-left: 5px;" value="查询"
				onclick="search2()" class="common_btn">
		</div>
		<table id="shopList" cellpadding="4" cellspacing="0" border="1"
			width="100%">
			<thead>
				<tr>
					<th>店面ID</th>
					<th>店面名称</th>
					<th>电话</th>
					<th>操作</th>
				</tr>
			</thead>
		</table>
		<div id="shopPager"></div>
	</div>
	
<!-- InstanceBeginEditable name="EditRegion3" --> 
<script type="text/javascript" src="../js/doubleDate2.0.js"></script> 
<script type="text/javascript">
$(function(){
	
	$('.doubledate').kuiDate({
		className:'doubledate',
		isDisabled: "0"  // isDisabled为可选参数，“0”表示今日之前不可选，“1”标志今日之前可选
	});

});
</script>
<div class="container" id="container">
  <div class="container_R fr">
    <div class="place">会员级别</div>
    <div class="member_search">
      <p><span>
        <input type="checkbox" id="shopIsChoosed" style="width:auto;height:auto;border:none;">
        店面：</span>
        <select id="shopName" onclick="showShopList()" style=";height:20px;" disabled="disabled">
        </select>
        <span>级别编码：</span>
        <input type="text" id="code" class="absoluteTxt">
      <span>级别名称：</span>
      <input type="text" id="name" class="absoluteTxt">
      <input type="button" value="查询" class="btn" onclick="search()" style="float: right;margin-top: 5px;"  > 
      </p>
    </div>
    <table width="100%" class="member_list" cellpadding="0" cellspacing="1" border="0" id="memberList">
      <caption>
      <strong>会员级别列表 <span id="sup">共0条</span> </strong><input type="button" onclick="toAdd()" class="common_btn" value="增加" id="addColumn">
      </caption>
      <thead>
        <tr>
          <th>店铺名称</th>
          <th>级别编码</th>
          <th>级别名称</th>
          <th>有效期(天)</th>
          <th>会费</th>
          <th>状态</th>
          <th>是否默认入会</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody></tbody>
    </table>
     <div id="NoResult"  class="Nothing" style="text-align:center;display: none;">无符合条件的数据！</div>
    <div id="pager" style="float: right;"></div>
  </div>
  <div class="fc"></div>
</div>
<!-- InstanceEndEditable --> 
<script type="text/javascript" src="../js/header.js"></script> 
<script type="text/javascript" src="../js/left.js"></script> 
<script type="text/javascript" src="../js/footer.js"></script> 
<script type="text/javascript">
clearThis("absoluteTxt");
showTab(2,4);
</script>
</body>
<!-- InstanceEnd -->
</html>
